﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Rendering.SortingCriteria
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine.Rendering
{
  /// <summary>
  ///   <para>How to sort objects during rendering.</para>
  /// </summary>
  [Flags]
  public enum SortingCriteria
  {
    /// <summary>
    ///   <para>Do not sort objects.</para>
    /// </summary>
    None = 0,
    /// <summary>
    ///   <para>Sort by renderer sorting layer.</para>
    /// </summary>
    SortingLayer = 1,
    /// <summary>
    ///   <para>Sort by material render queue.</para>
    /// </summary>
    RenderQueue = 2,
    /// <summary>
    ///   <para>Sort objects back to front.</para>
    /// </summary>
    BackToFront = 4,
    /// <summary>
    ///   <para>Sort objects in rough front-to-back buckets.</para>
    /// </summary>
    QuantizedFrontToBack = 8,
    /// <summary>
    ///   <para>Sort objects to reduce draw state changes.</para>
    /// </summary>
    OptimizeStateChanges = 16, // 0x00000010
    /// <summary>
    ///   <para>Sort renderers taking canvas order into account.</para>
    /// </summary>
    CanvasOrder = 32, // 0x00000020
    /// <summary>
    ///   <para>Sorts objects by renderer priority.</para>
    /// </summary>
    RendererPriority = 64, // 0x00000040
    /// <summary>
    ///   <para>Typical sorting for opaque objects.</para>
    /// </summary>
    CommonOpaque = CanvasOrder | OptimizeStateChanges | QuantizedFrontToBack | RenderQueue | SortingLayer, // 0x0000003B
    /// <summary>
    ///   <para>Typical sorting for transparencies.</para>
    /// </summary>
    CommonTransparent = OptimizeStateChanges | BackToFront | RenderQueue | SortingLayer, // 0x00000017
  }
}
